import request from '@/utils/request'

// 查询房租分期申请列表
export function listInstallment(query) {
  return request({
    url: '/jinrong/installment/list',
    method: 'get',
    params: query
  })
}

// 查询房租分期申请详细
export function getInstallment(id) {
  return request({
    url: '/jinrong/installment/' + id,
    method: 'get'
  })
}

// 新增房租分期申请
export function addInstallment(data) {
  return request({
    url: '/jinrong/installment',
    method: 'post',
    data: data
  })
}

// 修改房租分期申请
export function updateInstallment(data) {
  return request({
    url: '/jinrong/installment',
    method: 'put',
    data: data
  })
}

// 删除房租分期申请
export function delInstallment(id) {
  return request({
    url: '/jinrong/installment/' + id,
    method: 'delete'
  })
}
